#define _CRT_SECURE_NO_WARNINGS 1
#include"list.h"
void test()
{
	SListNode* plist = BuySListNode(1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 5);
	SListPushBack(&plist, 6);
	SListPushBack(&plist, 7);
	SListPushBack(&plist, 8);
	SListPushFront(&plist, 9);
	SListPushFront(&plist, 10);
	SListPushFront(&plist, 11);
	SListPushFront(&plist, 12);
	SListPushFront(&plist, 13);
	//SListPrint(plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	////SListPopBack(&plist);
	//SListPopBack(&plist);
	SListPrint(plist);
	printf("\n");
	SListPopFront(&plist);
	SListPopFront(&plist);
	SListPrint(plist);
	printf("\n");
	SListNode* find = SListFind(plist, 10);
	SListInsertAfter(find, 99);
	SListPrint(plist);
	printf("\n");
	SListEraseAfter(find);
	SListPrint(plist);
	printf("\n");
	SListDestroy(plist);
}
int main()
{
	test();
	return 0;
}